From: Eric Huss Date: Sun, 8 Oct 2017 01:55:00 +0000 (-0700) Subject: Fix broken tests due to different profile selection. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~5^2~22^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=390e9571c4f17c41fe0d3e6cc077192b6bb63c03;p=cargo.git Fix broken tests due to different profile selection. --- diff --git a/tests/rustc.rs b/tests/rustc.rs index da6aced75..36bd14e60 100644 --- a/tests/rustc.rs +++ b/tests/rustc.rs @@ -217,7 +217,7 @@ fn build_with_args_to_one_of_multiple_tests() { [RUNNING] `rustc --crate-name foo src[/]lib.rs --crate-type lib --emit=dep-info,link \ -C debuginfo=2 -C metadata=[..] \ --out-dir [..]` -[RUNNING] `rustc --crate-name bar tests[/]bar.rs --emit=dep-info,link -C debuginfo=2 \ +[RUNNING] `rustc --crate-name bar tests[/]bar.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 \ -C debug-assertions [..]--test[..]` [FINISHED] dev [unoptimized + debuginfo] target(s) in [..] ", url = p.url()))); diff --git a/tests/test.rs b/tests/test.rs index 9f48164f3..d657e0342 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1262,7 +1262,8 @@ fn test_run_implicit_example_target() { execs().with_status(0) .with_stderr(format!("\ [COMPILING] foo v0.0.1 ({dir}) -[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]", dir = prj.url()))); +[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] +[RUNNING] target[/]debug[/]examples[/]myexm-[..][EXE]", dir = prj.url()))); } #[test]